import { postRequest, getRequest } from '/@/lib/axios';

export const nmmordApi = {
  queryPage: (param) => {
    return postRequest('/nmmord/queryPage', param);
  },

  add: (param) => {
    return postRequest('/nmmord/add', param);
  },

  update: (param) => {
    return postRequest('/nmmord/update', param);
  },

  delete: (id) => {
    return getRequest(`/nmmord/delete/${id}`);
  },

  batchDelete: (idList) => {
    return postRequest('/nmmord/batchDelete', idList);
  },

  info: (param) => {
    return getRequest('/nmmord/info/' + param);
  },
};

export const nmmordaApi = {
  queryPage: (param) => {
    return postRequest('/nmmorda/queryPage', param);
  },

  add: (param) => {
    return postRequest('/nmmorda/add', param);
  },

  update: (param) => {
    return postRequest('/nmmorda/update', param);
  },

  delete: (id) => {
    return getRequest(`/nmmorda/delete/${id}`);
  },

  batchDelete: (idList) => {
    return postRequest('/nmmorda/batchDelete', idList);
  },
  deleteLine: (param) => {
    return postRequest('/nmmordb/deleteLine', param);
  },
};
